package com.daedalus.Gui.Email;

import javax.swing.*;


public class MailSendAbsolute extends JPanel{

	public MailSendAbsolute(){

		setSize(500,600);
		setLayout(null);
		
		JLabel tek=new JLabel("Tek");
		JLabel sub=new JLabel("Subjekti");
		JTextField address=new JTextField();
		JTextField subject= new JTextField();
		JTextArea area=new JTextArea();
		JScrollPane pane=new JScrollPane(area);
		
		tek.setSize(100, 40);
		tek.setLocation(50, 50);
		add(tek);
		
		sub.setSize(100, 40);
		sub.setLocation(50, 120);
		add(sub);
		
		address.setSize(200, 40);
		address.setLocation(170, 50);
		add(address);
		
		subject.setSize(200, 40);
		subject.setLocation(170, 120);
		add(subject);
		
		pane.setSize(400, 300);
		pane.setLocation(50, 190);
		pane.setVerticalScrollBarPolicy( ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		add(pane);
		
		JButton button=new JButton("Dergo !");
		button.setSize(150, 50);
		button.setLocation(180, 510);
		add(button);
		
	}

    public static void main(String[] args){
        JFrame frame = new JFrame();
        frame.setTitle("Shkruaj E-Mail");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(500, 600);

        frame.add(new MailSendAbsolute());
        frame.setVisible(true);

    }
}
